#include "../base/sexp.h"

#include <stdio.h>
#include <assert.h>


void test() {

	const char* fancy_sexp_1 = \
		"(root (This is a [test I didn't know what is going on](good job I love you guys(hello world))) root2 root3 root4)";
	size_t len;
	struct sexp* s = sexp_parse( fancy_sexp_1 , &len );
	assert( s != SEXP_ERROR  && s!= SEXP_EMPTY );
	/*
	 * Now we iterate all the node inside of this sexp
	 */
	sexp_print( s , stdout );
}